<%@ page language="java" import="java.util.*" pageEncoding="utf-8"   isELIgnored="false"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<title>IT园欢迎您！</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta name="Keywords" content="">
	<meta name="description" content="">
	<link href="css/user.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="bootstrap-3.3.5-dist/dist/css/bootstrap.css" type="text/css"></link>
	<script src="js/jquery-1.10.2.min.js"></script>
	<script src="bootstrap-3.3.5-dist/dist/js/bootstrap.min.js"></script>
	<script src="js/account.js"></script>
  </head>
<body>
<%--账号管理页面 --%>
	<jsp:include page="/user/account/accountLeft.jsp"></jsp:include>
	<div style="float: left;width:500px;margin-top: 8px;margin-left: 5px;">
			<form class="form-horizontal" id="personDataForm">
				  <div class="form-group">
				    <label for="firstname" class="col-sm-2 control-label">账号</label>
				    <div class="col-sm-8">
				      	<input type="text" class="form-control" disabled="disabled" name="username" value="${user.username }">
				    </div>
				  </div>
				  <input type="hidden" name="username" value="${user.username }">
				  <div class="form-group">
				    <label for="firstname" class="col-sm-2 control-label">中文名</label>
				    <div class="col-sm-8">
				      	<input type="text" class="form-control"  name="chName"  value="${user.chName }">
				    </div>
				  </div>
				  <div class="form-group">
				    <label for="firstname" class="col-sm-2 control-label">邮箱</label>
				    <div class="col-sm-8">
				      	<input type="text" class="form-control" disabled="disabled" name="email"  value="${user.email }">
				    </div>
				  </div>
				  <div class="form-group">
				    <label for="firstname" class="col-sm-2 control-label">手机</label>
				    <div class="col-sm-8">
				      	<input type="text" class="form-control" name="mobile"  value="${user.mobile }">
				    </div>
				  </div>
				  <div class="form-group">
				  		<label for="name" class="col-sm-2 control-label">性别</label>
				    	<div class="col-sm-8"> 
							   <label class="radio-inline"> 
							    <input type="radio"   name="sex"  value="0" <c:if test="${user.sex == 0 }">checked="checked"</c:if> >保密
							   </label> 
							    <label class="radio-inline"> 
							     <input type="radio"  name="sex" value="1" <c:if test="${user.sex == 1 }">checked="checked"</c:if> >男
							   </label> 
							   <label class="radio-inline"> 
							    <input type="radio"  name="sex"  value="2" <c:if test="${user.sex == 2 }">checked="checked"</c:if> >女
							   </label> 
					   </div>
					</div> 
					 <div class="form-group">
				    <label for="firstname" class="col-sm-2 control-label">职业</label>
				    <div class="col-sm-8">
				      	<input type="text" class="form-control" name="job" value="${user.job }">
				    </div>
				  </div>
				  <div class="form-group">
				    <div class="col-sm-offset-2 col-sm-10">
				      <button type="button" class="btn btn-primary" onclick="updatePersonData();">保存</button>
				    </div>
				  </div>
			</form>
	</div>
</body>
</html>
